import axios from "../axios"

/**
 * 服务相关接口
 */
export default class orgService {
  // 服务列表
  static async getorgServiceList(params) {
    let res = await axios.post('/business/orgService/list', params)
    return res.data.data
  }
  // 开通服务
  static async availableService(params) {
    let res = await axios.post('/business/orgService/availableService', params)
    return res.data
  }
  // 停止服务
  static async discontinueService(params) {
    let res = await axios.post('/business/orgService/discontinueService', params)
    return res.data
  }
  // 服务详情接口
  static async orgServiceDetail(orgId,orgType) {
    let res = await axios.get(`/business/orgService/detail?orgId=${orgId}&orgType=${orgType}`)
    return res.data
  }
  // 服务修改备注
  static async updateNotes(params) {
    let res = await axios.post(`/business/orgService/updateNotes`,params)
    return res.data
  }
}